<?php

$path="/root/git/linuxshell/systemneed/";
$count = $argc;

if($count < 3){

exit(0);
}

$i=0;
$str ="";
for($i=2;$i<$count;$i++){

$str=$str." ".$argv[$i];
}


if( $argv[1] === "-s" ){

system("echo ".$str." "." >> ".$path."softrecord.txt");

}else if( $argv[1] === "-c" ){

system("echo ".$str." "." >> ".$path."cmdrecord.txt");

}else{

echo "\n". $argv[1]." not we want";
}

system($str);

//echo "0:".$argv[0];














